package cn.bdqn.enums;

import lombok.Getter;

/**
 * @author 郑大仙丶
 * @date 2018-12-28 16:10
 */
@Getter
public enum JxcEnum {
    PARAM_ERROR(1,"参数不合法!"),


    USER_USERNAME_ERROR(11,"用户名错误!"),
    USER_PASSWORD_ERROR(12,"密码错误!"),
    USER_NOT_LOGIN(13,"用户未登录,无法退出登录!"),


    PRODUCT_QUANTITY_ERROR(31,"商品库存数异常!"),
    PRODUCT_QUANTITY_NOT_ENOUGH(32,"商品库存数不足!"),
    PRODUCT_QUANTITY_UPDATE_ERROR(33,"修改商品库存失败!"),

    SALE_ADD_ERROR(51,"添加销售记录失败!");

    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    JxcEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
